]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageList: Center-align close button vertically
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 25 Mar 2022 16:11:28 +0000 (17:11 +0100)
committerMarge Bot <marge-bot@gnome.org>
Mon, 28 Mar 2022 14:50:18 +0000 (14:50 +0000)
Otherwise it may end up stretched when using larger text.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2257>

js/ui/messageList.js

index 6151bb4a57e12e512d8c5b855b7212350339550c..99c544d017a6d5e8443153247514f923775ab4ff 100644 (file)
@@ -369,6 +369,7 @@ var Message = GObject.registerClass({
         this._closeButton = new St.Button({
             style_class: 'message-close-button',
             child: closeIcon, opacity: 0,
+            y_align: Clutter.ActorAlign.CENTER,
         });
         titleBox.add_actor(this._closeButton);